{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="#">公告</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a class="btn btn-primary" href="{php echo web_url('dashboard/notice/edit')}">添加公告</a>
			<a href="{php echo web_url('dashboard/notice/clear')}" class="btn btn-default" data-toggle='ajaxPost'>清除缓存</a>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th class="text-center" width="5%">id</th>
						<th class="text-center" width="50%">标题</th>
						<th class="text-center" width="15%">状态</th>
						<th class="text-center" width="15%">添加时间</th>
						<th class="text-center" width="15%">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $adv}
						<tr class="text-center">
							<td>{$adv['id']}</td>
							<td>{$adv['title']}</td>
							<td>{php echo tpl_change_status('dashboard/notice/changeStatus&id='.$adv['id'],$adv['enabled'])}</td>
							<td>{php echo date('Y-m-d H:i:s',$adv['createtime'])}</td>
							<td>
								<a class="btn btn-sm btn-warning" href="{php echo web_url('dashboard/notice/edit',array('id'=>$adv['id']))}">编辑</a>
								<a class="btn btn-sm btn-danger" data-toggle="ajaxRemove" href="{php echo web_url('dashboard/notice/delete',array('id'=>$adv['id']))}" data-confirm="确定删除当前信息?">删除</a>
							</td>
						</tr>
					{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left"></div>
			<div class="pull-right">{$pager}</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}